package cn;
public class People {
    String name;
    String addition;
    String number;
    String mail;
}
class student extends People {
    String grade;

    student(String name, String addition, String number, String mail, String grade) {
        this.name = name;
        this.grade = grade;
        this.mail = mail;
        this.addition = addition;
        this.number = number;
    }

    @Override
    public String toString() {

        return "姓名：" + name + " 地址：" + addition + " 电话：" + number + " 邮箱：" + mail + " 年级：" + grade;
    }
}

class Employee extends People{
    int salary;
    String office;
    String day;
    Employee(int salary,String office,String day,String name,String addition,String number,String mail)
    {
        this.day=day;
        this.office=office;
        this.salary=salary;
        this.addition=addition;
        this.number=number;
        this.name=name;
        this.mail=mail;
    }

    @Override
    public String toString() {
        return name;
    }
}

 class Faculty extends Employee{
        String Day;
    Faculty(int salary, String office, String day, String name, String addition, String number, String mail) {
        super(salary, office, day, name, addition, number, mail);
    }
}
class staff extends Employee
{
String work;

    staff(int salary, String office, String day, String name, String addition, String number, String mail) {
        super(salary, office, day, name, addition, number, mail);
    }
}


class MyData{
    public static void main(String[] args) {
        student st=new student("张三","d","123456","mail","大一");
        System.out.println(st.toString());
        Employee em=new Employee(1,"1","s","www","ss","ss","s");
        System.out.println(em.toString());
    }
}